<div id="facturacion" class="row-fluid">
    <div class="row-fluid">  
        <ul class="breadcrumb alingCenter">
            <li><a><b><?php
                        if ($cuarto[0]->tipo == 'privada')
                            echo "Habitación ";
                        else
                            echo "Cama ";
                        echo $cuarto[0]->nombre;
                        ?> </b></a></li>
        </ul>   
    </div>
    <div class="row-fluid">
        <div class="span6">
            <div class="row-fluid">
                <div class="span12 frame">
                    <div class="row-fluid title">
                        <div class="span12 alingCenter">Resumen</div>
                    </div>
                    <div class="row-fluid content">
                        <form id="form-actulizar-cuadrante-1" class="formBlockDisplay" action="reserva/calcularTarifas" method="post"  autocomplete="off">
                            <input id="cantidadNoches" name="idReserva" value="<?php echo $_GET["reserva"]; ?>" type="text" class="hide" readonly="readonly">
                            <div class="row-fluid">
                                <div class="span5"> <label class="pull-right">Desde:</label></div>
                                <div class="span7"> <input id="desde" name="desde" value="<?php echo $reserva[0]->fecha_ingreso; ?>" type="text" class=" requerido" <?php if ($reserva[0]->checkin_realizado == 1) echo "readonly='readonly'"; ?>></div>
                            </div>
                            <div class="row-fluid">
                                <div class="span5"> <label class="pull-right">Hasta:</label></div>
                                <div class="span7"> <input id="hasta" name="hasta" value="<?php echo $reserva[0]->fecha_salida; ?>" type="text" class=" requerido" <?php if ($reserva[0]->checkout_realizado == 1) echo "readonly='readonly'" ?> ></div>
                            </div>
                            <div class="row-fluid">
                                <div class="span5"> <label class="pull-right">Número de noches:</label></div>
                                <div class="span7"> <input id="cantidadNoches" name="cantidadNoches" value="<?php echo $cantidad_noches ?>" type="text" readonly="readonly"></div>
                            </div>
                            <div class="row-fluid">
                                <div class="span5"> <label class="pull-right">Número de personas:</label></div>
                                <div class="span7">  <select id="selectCantidadPersonas" name="selectCantidadPersonas" class="requerido" data-capacidadEstandar="<?php echo $capacidad[0]->capacidad_estandar; ?>" data-capacidadAdicional="<?php echo $capacidad[0]->capacidad_adicional; ?>" data-seleccion="<?php echo $reserva[0]->numero_personas; ?>" <?php if ($reserva[0]->checkin_realizado == 1) echo "readonly='readonly'"; ?>></select> </div>
                            </div>
                            <?php if ($reserva[0]->checkout_realizado != 1) { ?> 
                                <div class="row-fluid">
                                    <hr>
                                </div>
                                <div class="row-fluid">
                                    <div class="span12 alingCenter">
                                        <button id="botonFormCuadrante1"  class="btn" disabled>Actualizar</button>
                                        <br><br>
                                    </div>
                                </div><?php } ?>
                        </form>
                    </div>
                </div>
            </div>
            <div class="row-fluid">
                <form action="facturacion/actulizarQuienPaga" method="post" id="quienPaga" class="span12 frame formBlockDisplay" autocomplete="off">
                    <input id="idCliente" name="idCliente" value="<?php echo $reserva[0]->id_cliente; ?>" class="hide" readonly="readonly" type="text">
                    <input id="idReserva" name="idReserva" type="text" value="<?php echo $_GET["reserva"]; ?>" class="hide" readonly="readonly">
                    <input id="quien" name="quien" type="text" value="<?php
                    if ($reserva[0]->id_tipo_cliente == 1)
                        echo 'persona';
                    else
                        echo 'empresa';
                    ?>" class="hide" readonly="readonly">
                    <div class="row-fluid title">
                        <div class="span12 alingCenter">Titular</div>
                    </div>
                    <div class="row-fluid content">
                        <div class="row-fluid <?php if ($reserva[0]->checkout_realizado == 1) echo "hide"; ?>"> 

                            <div class="span12 alingCenter">
                                <div class="btn-group" data-toggle="buttons-radio">
                                    <button id="buttonDatosPersona" type="button" class="btn btn-inverse <?php if ($reserva[0]->id_tipo_cliente == 1) echo 'active'; ?>"  <?php if ($reserva[0]->checkout_realizado == 1) echo "disabled"; ?>>Persona</button>
                                    <button id="buttonDatosEmpresa" type="button" class="btn btn-inverse <?php if ($reserva[0]->id_tipo_cliente == 2) echo 'active'; ?>" <?php if ($reserva[0]->checkout_realizado == 1) echo "disabled"; ?>>Empresa</button>
                                </div>   <br><br>
                            </div>
                        </div> 
                        <div id="datosPersona" class="<?php if ($reserva[0]->id_tipo_cliente == 2) echo 'hide'; ?>">
                            <div class="row-fluid">
                                <div class="span5"> <label class="pull-right">Nacionalidad:</label></div>
                                <div class="span7"> 
                                    <select id="nacionalidad" name="nacionalidad" class="requeridoPersona preservar" data-seleccion="<?php echo $reserva[0]->id_pais; ?>"  <?php if ($reserva[0]->checkout_realizado == 1) echo "disabled"; ?> >
                                        <option value="">Selecionar...</option>
                                        <option value="1">ALBORAN Y PEREJIL ISLAS</option>
                                        <option value="13">AFGANISTAN</option>
                                        <option value="17">ALBANIA</option>
                                        <option value="23">ALEMANIA</option>
                                        <option value="37">ANDORRA</option>
                                        <option value="40">ANGOLA</option>
                                        <option value="43">ANTIGUA Y BARBUDA</option>
                                        <option value="44">ANTILLAS NEERLANDESAS</option>
                                        <option value="53">ARABIA</option>
                                        <option value="55">ARABIA SAUDITA</option>
                                        <option value="59">ARGELIA</option>
                                        <option value="63">ARGENTINA</option>
                                        <option value="65">ARMENIA</option>
                                        <option value="67">ARUBA</option>
                                        <option value="69">AUSTRALIA</option>
                                        <option value="72">AUSTRIA</option>
                                        <option value="75">AZERBAIYAN</option>
                                        <option value="77">BAHAMAS</option>
                                        <option value="80">BAHREIN</option>
                                        <option value="81">BANGLADESH</option>
                                        <option value="83">BARBADOS</option>
                                        <option value="85">BELARUS</option>
                                        <option value="87">BELGICA</option>
                                        <option value="88">BELICE</option>
                                        <option value="89">BENIN</option>
                                        <option value="90">BERMUDAS</option>
                                        <option value="97">BOLIVIA</option>
                                        <option value="99">BOSNIA</option>
                                        <option value="101">BOTSWANA</option>
                                        <option value="105">BRASIL</option>
                                        <option value="108">BRUNEI DARUSSALAM</option>
                                        <option value="111">BULGARIA</option>
                                        <option value="113">BURKINA FASO</option>
                                        <option value="115">BURUNDI</option>
                                        <option value="117">BHUTAN</option>
                                        <option value="127">CABO VERDE</option>
                                        <option value="137">CAIMAN ISLAS</option>
                                        <option value="141">CAMBOYA</option>
                                        <option value="145">CAMERUN</option>
                                        <option value="149">CANADA</option>
                                        <option value="151">CHAD</option>
                                        <option value="155">CEUTA Y MELILLA</option>
                                        <option value="169">COLOMBIA</option>
                                        <option value="171">COMORAS</option>
                                        <option value="177">REP. DEMOC. DEL CONGO</option>
                                        <option value="190">COREA DEL SUR</option>
                                        <option value="193">COTE D`IVOIRE</option>
                                        <option value="196">COSTA RICA</option>
                                        <option value="198">CROACIA</option>
                                        <option value="199">CUBA</option>
                                        <option value="201">CURAZAO</option>
                                        <option value="207">REPUBLICA CHECA</option>
                                        <option value="211">CHILE</option>
                                        <option value="215">CHINA</option>
                                        <option value="218">TAIWAN</option>
                                        <option value="221">CHIPRE</option>
                                        <option value="232">DINAMARCA</option>
                                        <option value="233">DJIBOUTI</option>
                                        <option value="235">DOMINICA</option>
                                        <option value="239">ECUADOR</option>
                                        <option value="240">EGIPTO</option>
                                        <option value="242">EL SALVADOR</option>
                                        <option value="244">EMIRATOS ARABES</option>
                                        <option value="245">ESPAÑA</option>
                                        <option value="246">ERITREA</option>
                                        <option value="247">ESLOVAQUIA</option>
                                        <option value="248">ESLOVENIA</option>
                                        <option value="249">ESTADOS UNIDOS DE AMERICA</option>
                                        <option value="251">ESTONIA</option>
                                        <option value="253">ETIOPIA</option>
                                        <option value="255">FIJI</option>
                                        <option value="267">FILIPINAS</option>
                                        <option value="271">FINLANDIA</option>
                                        <option value="275">FRANCIA</option>
                                        <option value="281">GABON</option>
                                        <option value="285">GAMBIA</option>
                                        <option value="287">GEORGIA</option>
                                        <option value="289">GHANA</option>
                                        <option value="293">GIBRALTAR</option>
                                        <option value="297">GRANADA</option>
                                        <option value="301">GRECIA</option>
                                        <option value="315">GROENLANDIA</option>
                                        <option value="317">GUATEMALA</option>
                                        <option value="325">GUYANA</option>
                                        <option value="329">GUINEA</option>
                                        <option value="331">GUINEA ECUATORIAL</option>
                                        <option value="334">GUINEA BISSAU</option>
                                        <option value="338">GUADALUPE</option>
                                        <option value="339">GUAM</option>
                                        <option value="340">GUAYANA FRANCESA</option>
                                        <option value="341">HAITI</option>
                                        <option value="345">HONDURAS</option>
                                        <option value="347">HONG KONG</option>
                                        <option value="355">HUNGRIA</option>
                                        <option value="361">INDIA</option>
                                        <option value="365">INDONESIA</option>
                                        <option value="369">IRAQ</option>
                                        <option value="372">IRAN</option>
                                        <option value="375">IRLANDA DEL SUR</option>
                                        <option value="379">ISLANDIA</option>
                                        <option value="380">ISLA DE MAN</option>
                                        <option value="381">ISLA DE PITCAIRN</option>
                                        <option value="382">ISLA JOHNSTON</option>
                                        <option value="383">ISRAEL</option>
                                        <option value="384">ISLAS ALAND</option>
                                        <option value="385">ISLA WAKE</option>
                                        <option value="386">ITALIA</option>
                                        <option value="387">ISLAS CHRISTMAS</option>
                                        <option value="388">ISLAS COOK</option>
                                        <option value="389">ISLAS DEL CANAL</option>
                                        <option value="390">ISLAS FEROE</option>
                                        <option value="391">JAMAICA</option>
                                        <option value="392">ISLAS MARIANAS DEL NORTE</option>
                                        <option value="393">ISLAS MIDWAY</option>
                                        <option value="394">ISLAS WALLIS Y FUTUNA</option>
                                        <option value="395">ISLAS SALOMON</option>
                                        <option value="397">IRIAN JAYA</option>
                                        <option value="399">JAPON</option>
                                        <option value="403">JORDANIA</option>
                                        <option value="406">KAZAJSTAN</option>
                                        <option value="410">KENYA</option>
                                        <option value="411">KIRIBATI</option>
                                        <option value="412">KIRGUISTAN</option>
                                        <option value="413">KUWAIT</option>
                                        <option value="414">KOSOVO</option>
                                        <option value="415">kYRGYZSTAN</option>
                                        <option value="420">REP. DEMOC. POPULAR LAO</option>
                                        <option value="426">LESOTHO</option>
                                        <option value="428">LETONIA</option>
                                        <option value="429">LITUANIA</option>
                                        <option value="431">LIBANO</option>
                                        <option value="434">LIBERIA</option>
                                        <option value="438">LIBIA</option>
                                        <option value="441">LIECHTENSTEIN</option>
                                        <option value="442">LUXEMBURGO</option>
                                        <option value="447">MACAO</option>
                                        <option value="448">MACEDONIA</option>
                                        <option value="450">MADAGASCAR</option>
                                        <option value="455">MALASIA</option>
                                        <option value="458">MALAWI</option>
                                        <option value="461">MALDIVAS</option>
                                        <option value="464">MALI</option>
                                        <option value="467">MALTA</option>
                                        <option value="474">MARRUECOS</option>
                                        <option value="475">ISLAS MARSHALL</option>
                                        <option value="485">MAURICIO</option>
                                        <option value="488">MAURITANIA</option>
                                        <option value="490">MARTINICA</option>
                                        <option value="493">MEXICO</option>
                                        <option value="494">MAYOTTE</option>
                                        <option value="495">REPUBLICA DE MOLDOVA</option>
                                        <option value="496">MONACO</option>
                                        <option value="497">MONGOLIA</option>
                                        <option value="499">MONTENEGRO</option>
                                        <option value="501">MONTSERRAT</option>
                                        <option value="503">MICRONESIA</option>
                                        <option value="505">MOZAMBIQUE</option>
                                        <option value="507">MYANMAR</option>
                                        <option value="508">NAURU</option>
                                        <option value="512">NAMIBIA</option>
                                        <option value="517">NEPAL</option>
                                        <option value="521">NICARAGUA</option>
                                        <option value="525">NIGERIA</option>
                                        <option value="528">NIGER</option>
                                        <option value="531">NIUE</option>
                                        <option value="538">NORUEGA</option>
                                        <option value="539">NUEVA CALEDONIA</option>
                                        <option value="540">NUEVA ZELANDIA</option>
                                        <option value="542">OMAN</option>
                                        <option value="545">PAPUA NVA GUINEA</option>
                                        <option value="548">NUEVA ZELANDIA</option>
                                        <option value="556">OMAN</option>
                                        <option value="573">PAISES BAJOS</option>
                                        <option value="576">PAKISTAN</option>
                                        <option value="578">PALAU</option>
                                        <option value="580">PANAMA</option>
                                        <option value="582">PAPUA NUEVA GUINEA</option>
                                        <option value="586">PARAGUAY</option>
                                        <option value="589">PERU</option>
                                        <option value="600">PALESTINA</option>
                                        <option value="603">POLONIA</option>
                                        <option value="607">PORTUGAL</option>
                                        <option value="609">POLINESIA FRANCESA</option>
                                        <option value="611">PUERTO RICO</option>
                                        <option value="618">QATAR</option>
                                        <option value="628">REINO UNIDO</option>
                                        <option value="640">R. CENTROAFRICANA</option>
                                        <option value="643">REPUBLICA DE BELARRUS</option>
                                        <option value="645">REPUBLICA DE CHECHENIA</option>
                                        <option value="647">REPUBLICA DOMINICANA</option>
                                        <option value="649">REPUBLICA CHECA</option>
                                        <option value="650">REUNION</option>
                                        <option value="651">COREA DEL NORTE</option>
                                        <option value="670">RUMANIA</option>
                                        <option value="673">RUSIA</option>
                                        <option value="675">RWANDA</option>
                                        <option value="676">TRASJORDANIA</option>
                                        <option value="680">SAHARA OCCIDENTAL</option>
                                        <option value="682">SAINT-PIERRE Y MIQUELON</option>
                                        <option value="695">SAN CRISTOBAL Y NEVIS</option>
                                        <option value="698">SAMOA ESTADOUNIDENSE</option>
                                        <option value="699">SAMOA OCCIDENTAL</option>
                                        <option value="701">SAN MARINO</option>
                                        <option value="705">SAN VICENTE Y LAS GRANADINAS</option>
                                        <option value="708">SANTA HELENA</option>
                                        <option value="715">SANTA LUCIA</option>
                                        <option value="717">SANTA SEDE</option>
                                        <option value="720">SANTO TOME Y PRINCIPE</option>
                                        <option value="728">SENEGAL</option>
                                        <option value="729">SERBIA</option>
                                        <option value="730">SVALBARD</option>
                                        <option value="731">SEYCHELLES</option>
                                        <option value="735">SIERRA LEONA</option>
                                        <option value="741">SINGAPUR</option>
                                        <option value="744">REP. ARABE SIRIA</option>
                                        <option value="748">SOMALIA</option>
                                        <option value="750">SRI LANKA</option>
                                        <option value="756">SUDAFRICA</option>
                                        <option value="759">SUDAN</option>
                                        <option value="764">SUECIA</option>
                                        <option value="767">SUIZA</option>
                                        <option value="770">SURINAME</option>
                                        <option value="773">SWAZILANDIA</option>
                                        <option value="774">TAIWAN</option>
                                        <option value="775">TAYIKISTAN</option>
                                        <option value="776">TAILANDIA</option>
                                        <option value="777">TIBET</option>
                                        <option value="778">TERRIT. BRITANICO EN ANTARTIDA</option>
                                        <option value="779">TERRIT. BRIT. EN EL OCEANO INDICO</option>
                                        <option value="780">REP. UNIDA DE TANZANIA</option>
                                        <option value="781">TIERRAS AUSTALES Y ANTARTICAS</option>
                                        <option value="782">TAJIkISTAN</option>
                                        <option value="783">TIMOR ORIENTAL</option>
                                        <option value="800">TOGO</option>
                                        <option value="810">TONGA</option>
                                        <option value="812">TOQUELAU</option>
                                        <option value="815">TRINIDAD Y TOBAGO</option>
                                        <option value="820">TUNEZ</option>
                                        <option value="824">TURKMENISTAN</option>
                                        <option value="827">TURQUIA</option>
                                        <option value="828">TUVALU</option>
                                        <option value="829">TURKMENISTAN</option>
                                        <option value="830">UCRANIA</option>
                                        <option value="833">UGANDA</option>
                                        <option value="840">FEDERACION DE RUSIA</option>
                                        <option value="842">UNION MYANMAR</option>
                                        <option value="845">URUGUAY</option>
                                        <option value="847">UZBEKISTAN</option>
                                        <option value="849">VANUATU</option>
                                        <option value="850">VENEZUELA</option>
                                        <option value="855">VIET NAM</option>
                                        <option value="866">ISLAS VIRGENES BRITANICAS</option>
                                        <option value="867">ISLAS VIRGENES ESTADOUNIDENSES</option>
                                        <option value="880">YEMEN</option>
                                        <option value="885">YUGOSLAVIA</option>
                                        <option value="888">ZAIRE</option>
                                        <option value="890">ZAMBIA</option>
                                        <option value="892">ZIMBABWE</option>
                                        <option value="895">ANGUILA</option>
                                        <option value="900">ISLAS TURKS Y CAICOS</option>
                                        <option value="902">POINTE A PITRE</option>
                                        <option value="905">T</option>
                                        <option value="910">VILNA</option>
                                        <option value="915">YAMENA</option>
                                        <option value="920">YIBUTI</option>
                                        <option value="921">ANTILLAS HOLANDESAS</option>
                                        <option value="922">GRAN BRETAÑA</option>
                                        <option value="923">HOLANDA</option>
                                        <option value="924">PALESTINA</option>
                                        <option value="925">AFRICA</option>
                                        <option value="926">SLOVENIJE</option>
                                        <option value="927">LITHUANIA</option>
                                        <option value="928">ERITREA</option>
                                        <option value="929">ESCOCIA</option>
                                        <option value="930">GALES</option>
                                        <option value="931">INGLATERRA</option>
                                        <option value="932">IRLANDA DEL NORTE</option>
                                        <option value="933">LATVIJAS REPUBLICA</option>
                                        <option value="934">ROYAUME DU MAROC</option>
                                        <option value="998">CENTROAFRICA</option>
                                        <option value="999">DESCONOCIDO</option>
                                    </select>
                                </div>
                            </div>
                            <div class="row-fluid">
                                <div class="span5"> 
                                    <label class="pull-right">Documento:</label>
                                </div>
                                <div class="span7">
                                    <input id="documento" name="documento" class="requeridoPersona preservar" value="<?php if ($reserva[0]->id_tipo_cliente == 1) echo $reserva[0]->identificacion; ?>" type="text" <?php if ($reserva[0]->checkout_realizado == 1) echo "disabled"; ?>>
                                </div>
                            </div>
                            <div class="row-fluid">
                                <div class="span5"> <label class="pull-right">Tipo de documento:</label></div>
                                <div class="span7"> <select id="tipoDocumento" name="tipoDocumento" class="requeridoPersona" data-seleccion="<?php echo $reserva[0]->id_documento; ?>" <?php if ($reserva[0]->checkout_realizado == 1) echo "disabled"; ?> >
                                        <option value="">Seleccionar...</option>
                                        <?php foreach ($documentos as $row) { ?>
                                            <option value="<?php echo $row->id_documento; ?>"><?php echo $row->nombre; ?></option>
                                        <?php } ?>
                                    </select> 
                                </div>
                            </div>
                            <div class="row-fluid">
                                <div class="span5"> 
                                    <label class="pull-right">Nombres:</label>
                                </div>
                                <div class="span7">
                                    <input id="nombre" name="nombre" value="<?php if ($reserva[0]->id_tipo_cliente == 1) echo $reserva[0]->nombre; ?>"class="requeridoPersona" type="text" <?php if ($reserva[0]->checkout_realizado == 1) echo "disabled"; ?>>
                                </div>
                            </div>
                            <div class="row-fluid">
                                <div class="span5"> 
                                    <label class="pull-right">Apellidos:</label>
                                </div>
                                <div class="span7">
                                    <input id="apellido" name="apellido" value="<?php if ($reserva[0]->id_tipo_cliente == 1) echo $reserva[0]->apellido; ?>" class="requeridoPersona" type="text" <?php if ($reserva[0]->checkout_realizado == 1) echo "disabled"; ?>>
                                </div>
                            </div>
                            <div class="row-fluid">
                                <div class="span5"> 
                                    <label class="pull-right">Genero:</label>
                                </div>
                                <div class="span7">
                                    <select id="genero" name="genero" data-seleccion="<?php echo $reserva[0]->genero; ?>" class="requeridoPersona" <?php if ($reserva[0]->checkout_realizado == 1) echo "disabled"; ?> >
                                        <option value="">Seleccionar...</option>
                                        <option value="f">Femenino</option>
                                        <option value="m">Masculino</option>
                                    </select>                          
                                </div>
                            </div>
                            <div class="row-fluid">
                                <div class="span5"> 
                                    <label class="pull-right">Fecha de nacimiento:</label>
                                </div>
                                <div class="span7">
                                    <input id="fechaNacimiento" name="fechaNacimiento" value="<?php if ($reserva[0]->id_tipo_cliente == 1) echo $reserva[0]->fecha_nacimiento; ?>" class="requeridoPersona" type="text" placeholder="dd/mm/yyyy" <?php if ($reserva[0]->checkout_realizado == 1) echo "disabled"; ?>>
                                    <span id="ayudaFechaNacimiento" class="colorRed hide">Formato de fecha inválido</span>
                                </div>
                            </div>
                            <div class="row-fluid">
                                <div class="span5"> 
                                    <label class="pull-right">Teléfono:</label>
                                </div>
                                <div class="span7">
                                    <input id="telefono" name="telefono" value="<?php if ($reserva[0]->id_tipo_cliente == 1) echo $reserva[0]->telefono; ?>"class="requeridoPersona" type="text" <?php if ($reserva[0]->checkout_realizado == 1) echo "disabled"; ?>>
                                </div>
                            </div>
                            <div class="row-fluid">
                                <div class="span5"> 
                                    <label class="pull-right">E-mail:</label>
                                </div>
                                <div class="span7">
                                    <input id="email" name="email" value="<?php if ($reserva[0]->id_tipo_cliente == 1) echo $reserva[0]->email; ?>" type="text" <?php if ($reserva[0]->checkout_realizado == 1) echo "disabled"; ?>>
                                </div>
                            </div>
                            <div class="row-fluid">
                                <div class="span5"> 
                                    <label class="pull-right">Ocupación:</label>
                                </div>
                                <div class="span7">
                                    <input id="ocupacion" name="ocupacion"  value="<?php if ($reserva[0]->id_tipo_cliente == 1) echo $reserva[0]->ocupacion; ?>"  type="text" <?php if ($reserva[0]->checkout_realizado == 1) echo "disabled"; ?>>
                                </div>
                            </div>
                            <div class="row-fluid">
                                <div class="span5"> 
                                    <label class="pull-right">Estado civil:</label>
                                </div>
                                <div class="span7">
                                    <select id="idEstadoCivil" name="idEstadoCivil" data-seleccion="<?php echo $reserva[0]->id_estado_civil; ?>" <?php if ($reserva[0]->checkout_realizado == 1) echo "disabled"; ?> >
                                        <option value="">Seleccionar...</option>
                                        <?php foreach ($estadoCivil as $row) { ?>
                                            <option value="<?php echo $row->id_estado_civil; ?>"><?php echo $row->nombre; ?></option>
                                        <?php } ?>
                                    </select>
                                </div>
                            </div>
                            <div class="row-fluid">
                                <div class="span5"> 
                                    <label class="pull-right">Habilitar como húesped:</label>
                                </div>
                                <div class="span7">
                                    <input type="checkbox" id="esHuesped" name="esHuesped" <?php
                                    if (!empty($esHuesped[0])) {
                                        echo "checked='checked'";
                                    }
                                    ?> <?php if ($reserva[0]->checkout_realizado == 1) echo "disabled"; ?>>
                                </div>
                            </div>
                            <div id="formEsHuesped" class="hide">
                                <div class="row-fluid">
                                    <div class="span5"> 
                                        <label class="pull-right">País de procedencia:</label>
                                    </div>
                                    <div class="span7">
                                        <select id="paisProcedencia" name="paisProcedencia" class="requeridoHuesped" data-seleccion="<?php if (!empty($esHuesped[0])) echo $esHuesped[0]->pais_procedencia; ?>" <?php if ($reserva[0]->checkout_realizado == 1) echo "disabled"; ?> >
                                            <option value="">Selecionar...</option>
                                            <option value="1">ALBORAN Y PEREJIL ISLAS</option>
                                            <option value="13">AFGANISTAN</option>
                                            <option value="17">ALBANIA</option>
                                            <option value="23">ALEMANIA</option>
                                            <option value="37">ANDORRA</option>
                                            <option value="40">ANGOLA</option>
                                            <option value="43">ANTIGUA Y BARBUDA</option>
                                            <option value="44">ANTILLAS NEERLANDESAS</option>
                                            <option value="53">ARABIA</option>
                                            <option value="55">ARABIA SAUDITA</option>
                                            <option value="59">ARGELIA</option>
                                            <option value="63">ARGENTINA</option>
                                            <option value="65">ARMENIA</option>
                                            <option value="67">ARUBA</option>
                                            <option value="69">AUSTRALIA</option>
                                            <option value="72">AUSTRIA</option>
                                            <option value="75">AZERBAIYAN</option>
                                            <option value="77">BAHAMAS</option>
                                            <option value="80">BAHREIN</option>
                                            <option value="81">BANGLADESH</option>
                                            <option value="83">BARBADOS</option>
                                            <option value="85">BELARUS</option>
                                            <option value="87">BELGICA</option>
                                            <option value="88">BELICE</option>
                                            <option value="89">BENIN</option>
                                            <option value="90">BERMUDAS</option>
                                            <option value="97">BOLIVIA</option>
                                            <option value="99">BOSNIA</option>
                                            <option value="101">BOTSWANA</option>
                                            <option value="105">BRASIL</option>
                                            <option value="108">BRUNEI DARUSSALAM</option>
                                            <option value="111">BULGARIA</option>
                                            <option value="113">BURKINA FASO</option>
                                            <option value="115">BURUNDI</option>
                                            <option value="117">BHUTAN</option>
                                            <option value="127">CABO VERDE</option>
                                            <option value="137">CAIMAN ISLAS</option>
                                            <option value="141">CAMBOYA</option>
                                            <option value="145">CAMERUN</option>
                                            <option value="149">CANADA</option>
                                            <option value="151">CHAD</option>
                                            <option value="155">CEUTA Y MELILLA</option>
                                            <option value="169">COLOMBIA</option>
                                            <option value="171">COMORAS</option>
                                            <option value="177">REP. DEMOC. DEL CONGO</option>
                                            <option value="190">COREA DEL SUR</option>
                                            <option value="193">COTE D`IVOIRE</option>
                                            <option value="196">COSTA RICA</option>
                                            <option value="198">CROACIA</option>
                                            <option value="199">CUBA</option>
                                            <option value="201">CURAZAO</option>
                                            <option value="207">REPUBLICA CHECA</option>
                                            <option value="211">CHILE</option>
                                            <option value="215">CHINA</option>
                                            <option value="218">TAIWAN</option>
                                            <option value="221">CHIPRE</option>
                                            <option value="232">DINAMARCA</option>
                                            <option value="233">DJIBOUTI</option>
                                            <option value="235">DOMINICA</option>
                                            <option value="239">ECUADOR</option>
                                            <option value="240">EGIPTO</option>
                                            <option value="242">EL SALVADOR</option>
                                            <option value="244">EMIRATOS ARABES</option>
                                            <option value="245">ESPAÑA</option>
                                            <option value="246">ERITREA</option>
                                            <option value="247">ESLOVAQUIA</option>
                                            <option value="248">ESLOVENIA</option>
                                            <option value="249">ESTADOS UNIDOS DE AMERICA</option>
                                            <option value="251">ESTONIA</option>
                                            <option value="253">ETIOPIA</option>
                                            <option value="255">FIJI</option>
                                            <option value="267">FILIPINAS</option>
                                            <option value="271">FINLANDIA</option>
                                            <option value="275">FRANCIA</option>
                                            <option value="281">GABON</option>
                                            <option value="285">GAMBIA</option>
                                            <option value="287">GEORGIA</option>
                                            <option value="289">GHANA</option>
                                            <option value="293">GIBRALTAR</option>
                                            <option value="297">GRANADA</option>
                                            <option value="301">GRECIA</option>
                                            <option value="315">GROENLANDIA</option>
                                            <option value="317">GUATEMALA</option>
                                            <option value="325">GUYANA</option>
                                            <option value="329">GUINEA</option>
                                            <option value="331">GUINEA ECUATORIAL</option>
                                            <option value="334">GUINEA BISSAU</option>
                                            <option value="338">GUADALUPE</option>
                                            <option value="339">GUAM</option>
                                            <option value="340">GUAYANA FRANCESA</option>
                                            <option value="341">HAITI</option>
                                            <option value="345">HONDURAS</option>
                                            <option value="347">HONG KONG</option>
                                            <option value="355">HUNGRIA</option>
                                            <option value="361">INDIA</option>
                                            <option value="365">INDONESIA</option>
                                            <option value="369">IRAQ</option>
                                            <option value="372">IRAN</option>
                                            <option value="375">IRLANDA DEL SUR</option>
                                            <option value="379">ISLANDIA</option>
                                            <option value="380">ISLA DE MAN</option>
                                            <option value="381">ISLA DE PITCAIRN</option>
                                            <option value="382">ISLA JOHNSTON</option>
                                            <option value="383">ISRAEL</option>
                                            <option value="384">ISLAS ALAND</option>
                                            <option value="385">ISLA WAKE</option>
                                            <option value="386">ITALIA</option>
                                            <option value="387">ISLAS CHRISTMAS</option>
                                            <option value="388">ISLAS COOK</option>
                                            <option value="389">ISLAS DEL CANAL</option>
                                            <option value="390">ISLAS FEROE</option>
                                            <option value="391">JAMAICA</option>
                                            <option value="392">ISLAS MARIANAS DEL NORTE</option>
                                            <option value="393">ISLAS MIDWAY</option>
                                            <option value="394">ISLAS WALLIS Y FUTUNA</option>
                                            <option value="395">ISLAS SALOMON</option>
                                            <option value="397">IRIAN JAYA</option>
                                            <option value="399">JAPON</option>
                                            <option value="403">JORDANIA</option>
                                            <option value="406">KAZAJSTAN</option>
                                            <option value="410">KENYA</option>
                                            <option value="411">KIRIBATI</option>
                                            <option value="412">KIRGUISTAN</option>
                                            <option value="413">KUWAIT</option>
                                            <option value="414">KOSOVO</option>
                                            <option value="415">kYRGYZSTAN</option>
                                            <option value="420">REP. DEMOC. POPULAR LAO</option>
                                            <option value="426">LESOTHO</option>
                                            <option value="428">LETONIA</option>
                                            <option value="429">LITUANIA</option>
                                            <option value="431">LIBANO</option>
                                            <option value="434">LIBERIA</option>
                                            <option value="438">LIBIA</option>
                                            <option value="441">LIECHTENSTEIN</option>
                                            <option value="442">LUXEMBURGO</option>
                                            <option value="447">MACAO</option>
                                            <option value="448">MACEDONIA</option>
                                            <option value="450">MADAGASCAR</option>
                                            <option value="455">MALASIA</option>
                                            <option value="458">MALAWI</option>
                                            <option value="461">MALDIVAS</option>
                                            <option value="464">MALI</option>
                                            <option value="467">MALTA</option>
                                            <option value="474">MARRUECOS</option>
                                            <option value="475">ISLAS MARSHALL</option>
                                            <option value="485">MAURICIO</option>
                                            <option value="488">MAURITANIA</option>
                                            <option value="490">MARTINICA</option>
                                            <option value="493">MEXICO</option>
                                            <option value="494">MAYOTTE</option>
                                            <option value="495">REPUBLICA DE MOLDOVA</option>
                                            <option value="496">MONACO</option>
                                            <option value="497">MONGOLIA</option>
                                            <option value="499">MONTENEGRO</option>
                                            <option value="501">MONTSERRAT</option>
                                            <option value="503">MICRONESIA</option>
                                            <option value="505">MOZAMBIQUE</option>
                                            <option value="507">MYANMAR</option>
                                            <option value="508">NAURU</option>
                                            <option value="512">NAMIBIA</option>
                                            <option value="517">NEPAL</option>
                                            <option value="521">NICARAGUA</option>
                                            <option value="525">NIGERIA</option>
                                            <option value="528">NIGER</option>
                                            <option value="531">NIUE</option>
                                            <option value="538">NORUEGA</option>
                                            <option value="539">NUEVA CALEDONIA</option>
                                            <option value="540">NUEVA ZELANDIA</option>
                                            <option value="542">OMAN</option>
                                            <option value="545">PAPUA NVA GUINEA</option>
                                            <option value="548">NUEVA ZELANDIA</option>
                                            <option value="556">OMAN</option>
                                            <option value="573">PAISES BAJOS</option>
                                            <option value="576">PAKISTAN</option>
                                            <option value="578">PALAU</option>
                                            <option value="580">PANAMA</option>
                                            <option value="582">PAPUA NUEVA GUINEA</option>
                                            <option value="586">PARAGUAY</option>
                                            <option value="589">PERU</option>
                                            <option value="600">PALESTINA</option>
                                            <option value="603">POLONIA</option>
                                            <option value="607">PORTUGAL</option>
                                            <option value="609">POLINESIA FRANCESA</option>
                                            <option value="611">PUERTO RICO</option>
                                            <option value="618">QATAR</option>
                                            <option value="628">REINO UNIDO</option>
                                            <option value="640">R. CENTROAFRICANA</option>
                                            <option value="643">REPUBLICA DE BELARRUS</option>
                                            <option value="645">REPUBLICA DE CHECHENIA</option>
                                            <option value="647">REPUBLICA DOMINICANA</option>
                                            <option value="649">REPUBLICA CHECA</option>
                                            <option value="650">REUNION</option>
                                            <option value="651">COREA DEL NORTE</option>
                                            <option value="670">RUMANIA</option>
                                            <option value="673">RUSIA</option>
                                            <option value="675">RWANDA</option>
                                            <option value="676">TRASJORDANIA</option>
                                            <option value="680">SAHARA OCCIDENTAL</option>
                                            <option value="682">SAINT-PIERRE Y MIQUELON</option>
                                            <option value="695">SAN CRISTOBAL Y NEVIS</option>
                                            <option value="698">SAMOA ESTADOUNIDENSE</option>
                                            <option value="699">SAMOA OCCIDENTAL</option>
                                            <option value="701">SAN MARINO</option>
                                            <option value="705">SAN VICENTE Y LAS GRANADINAS</option>
                                            <option value="708">SANTA HELENA</option>
                                            <option value="715">SANTA LUCIA</option>
                                            <option value="717">SANTA SEDE</option>
                                            <option value="720">SANTO TOME Y PRINCIPE</option>
                                            <option value="728">SENEGAL</option>
                                            <option value="729">SERBIA</option>
                                            <option value="730">SVALBARD</option>
                                            <option value="731">SEYCHELLES</option>
                                            <option value="735">SIERRA LEONA</option>
                                            <option value="741">SINGAPUR</option>
                                            <option value="744">REP. ARABE SIRIA</option>
                                            <option value="748">SOMALIA</option>
                                            <option value="750">SRI LANKA</option>
                                            <option value="756">SUDAFRICA</option>
                                            <option value="759">SUDAN</option>
                                            <option value="764">SUECIA</option>
                                            <option value="767">SUIZA</option>
                                            <option value="770">SURINAME</option>
                                            <option value="773">SWAZILANDIA</option>
                                            <option value="774">TAIWAN</option>
                                            <option value="775">TAYIKISTAN</option>
                                            <option value="776">TAILANDIA</option>
                                            <option value="777">TIBET</option>
                                            <option value="778">TERRIT. BRITANICO EN ANTARTIDA</option>
                                            <option value="779">TERRIT. BRIT. EN EL OCEANO INDICO</option>
                                            <option value="780">REP. UNIDA DE TANZANIA</option>
                                            <option value="781">TIERRAS AUSTALES Y ANTARTICAS</option>
                                            <option value="782">TAJIkISTAN</option>
                                            <option value="783">TIMOR ORIENTAL</option>
                                            <option value="800">TOGO</option>
                                            <option value="810">TONGA</option>
                                            <option value="812">TOQUELAU</option>
                                            <option value="815">TRINIDAD Y TOBAGO</option>
                                            <option value="820">TUNEZ</option>
                                            <option value="824">TURKMENISTAN</option>
                                            <option value="827">TURQUIA</option>
                                            <option value="828">TUVALU</option>
                                            <option value="829">TURKMENISTAN</option>
                                            <option value="830">UCRANIA</option>
                                            <option value="833">UGANDA</option>
                                            <option value="840">FEDERACION DE RUSIA</option>
                                            <option value="842">UNION MYANMAR</option>
                                            <option value="845">URUGUAY</option>
                                            <option value="847">UZBEKISTAN</option>
                                            <option value="849">VANUATU</option>
                                            <option value="850">VENEZUELA</option>
                                            <option value="855">VIET NAM</option>
                                            <option value="866">ISLAS VIRGENES BRITANICAS</option>
                                            <option value="867">ISLAS VIRGENES ESTADOUNIDENSES</option>
                                            <option value="880">YEMEN</option>
                                            <option value="885">YUGOSLAVIA</option>
                                            <option value="888">ZAIRE</option>
                                            <option value="890">ZAMBIA</option>
                                            <option value="892">ZIMBABWE</option>
                                            <option value="895">ANGUILA</option>
                                            <option value="900">ISLAS TURKS Y CAICOS</option>
                                            <option value="902">POINTE A PITRE</option>
                                            <option value="905">T</option>
                                            <option value="910">VILNA</option>
                                            <option value="915">YAMENA</option>
                                            <option value="920">YIBUTI</option>
                                            <option value="921">ANTILLAS HOLANDESAS</option>
                                            <option value="922">GRAN BRETAÑA</option>
                                            <option value="923">HOLANDA</option>
                                            <option value="924">PALESTINA</option>
                                            <option value="925">AFRICA</option>
                                            <option value="926">SLOVENIJE</option>
                                            <option value="927">LITHUANIA</option>
                                            <option value="928">ERITREA</option>
                                            <option value="929">ESCOCIA</option>
                                            <option value="930">GALES</option>
                                            <option value="931">INGLATERRA</option>
                                            <option value="932">IRLANDA DEL NORTE</option>
                                            <option value="933">LATVIJAS REPUBLICA</option>
                                            <option value="934">ROYAUME DU MAROC</option>
                                            <option value="998">CENTROAFRICA</option>
                                            <option value="999">DESCONOCIDO</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="row-fluid">
                                    <div class="span5"> 
                                        <label class="pull-right">Ciudad de procedencia:</label>
                                    </div>
                                    <div class="span7">
                                        <input id="ciudadProcedencia" name="ciudadProcedencia" class="input-medium requeridoHuesped" type="text" value="<?php if (!empty($esHuesped[0])) echo $esHuesped[0]->ciudad_procedencia; ?>" <?php if ($reserva[0]->checkout_realizado == 1) echo "disabled"; ?>>
                                    </div>
                                </div>
                                <div class="row-fluid">
                                    <div class="span5"> 
                                        <label class="pull-right">País de destino:</label>
                                    </div>
                                    <div class="span7">
                                        <select id="paisDestino" name="paisDestino" class="requeridoHuesped" data-seleccion="<?php if (!empty($esHuesped[0])) echo $esHuesped[0]->pais_destino; ?>" <?php if ($reserva[0]->checkout_realizado == 1) echo "disabled"; ?> >
                                            <option value="">Selecionar...</option>
                                            <option value="1">ALBORAN Y PEREJIL ISLAS</option>
                                            <option value="13">AFGANISTAN</option>
                                            <option value="17">ALBANIA</option>
                                            <option value="23">ALEMANIA</option>
                                            <option value="37">ANDORRA</option>
                                            <option value="40">ANGOLA</option>
                                            <option value="43">ANTIGUA Y BARBUDA</option>
                                            <option value="44">ANTILLAS NEERLANDESAS</option>
                                            <option value="53">ARABIA</option>
                                            <option value="55">ARABIA SAUDITA</option>
                                            <option value="59">ARGELIA</option>
                                            <option value="63">ARGENTINA</option>
                                            <option value="65">ARMENIA</option>
                                            <option value="67">ARUBA</option>
                                            <option value="69">AUSTRALIA</option>
                                            <option value="72">AUSTRIA</option>
                                            <option value="75">AZERBAIYAN</option>
                                            <option value="77">BAHAMAS</option>
                                            <option value="80">BAHREIN</option>
                                            <option value="81">BANGLADESH</option>
                                            <option value="83">BARBADOS</option>
                                            <option value="85">BELARUS</option>
                                            <option value="87">BELGICA</option>
                                            <option value="88">BELICE</option>
                                            <option value="89">BENIN</option>
                                            <option value="90">BERMUDAS</option>
                                            <option value="97">BOLIVIA</option>
                                            <option value="99">BOSNIA</option>
                                            <option value="101">BOTSWANA</option>
                                            <option value="105">BRASIL</option>
                                            <option value="108">BRUNEI DARUSSALAM</option>
                                            <option value="111">BULGARIA</option>
                                            <option value="113">BURKINA FASO</option>
                                            <option value="115">BURUNDI</option>
                                            <option value="117">BHUTAN</option>
                                            <option value="127">CABO VERDE</option>
                                            <option value="137">CAIMAN ISLAS</option>
                                            <option value="141">CAMBOYA</option>
                                            <option value="145">CAMERUN</option>
                                            <option value="149">CANADA</option>
                                            <option value="151">CHAD</option>
                                            <option value="155">CEUTA Y MELILLA</option>
                                            <option value="169">COLOMBIA</option>
                                            <option value="171">COMORAS</option>
                                            <option value="177">REP. DEMOC. DEL CONGO</option>
                                            <option value="190">COREA DEL SUR</option>
                                            <option value="193">COTE D`IVOIRE</option>
                                            <option value="196">COSTA RICA</option>
                                            <option value="198">CROACIA</option>
                                            <option value="199">CUBA</option>
                                            <option value="201">CURAZAO</option>
                                            <option value="207">REPUBLICA CHECA</option>
                                            <option value="211">CHILE</option>
                                            <option value="215">CHINA</option>
                                            <option value="218">TAIWAN</option>
                                            <option value="221">CHIPRE</option>
                                            <option value="232">DINAMARCA</option>
                                            <option value="233">DJIBOUTI</option>
                                            <option value="235">DOMINICA</option>
                                            <option value="239">ECUADOR</option>
                                            <option value="240">EGIPTO</option>
                                            <option value="242">EL SALVADOR</option>
                                            <option value="244">EMIRATOS ARABES</option>
                                            <option value="245">ESPAÑA</option>
                                            <option value="246">ERITREA</option>
                                            <option value="247">ESLOVAQUIA</option>
                                            <option value="248">ESLOVENIA</option>
                                            <option value="249">ESTADOS UNIDOS DE AMERICA</option>
                                            <option value="251">ESTONIA</option>
                                            <option value="253">ETIOPIA</option>
                                            <option value="255">FIJI</option>
                                            <option value="267">FILIPINAS</option>
                                            <option value="271">FINLANDIA</option>
                                            <option value="275">FRANCIA</option>
                                            <option value="281">GABON</option>
                                            <option value="285">GAMBIA</option>
                                            <option value="287">GEORGIA</option>
                                            <option value="289">GHANA</option>
                                            <option value="293">GIBRALTAR</option>
                                            <option value="297">GRANADA</option>
                                            <option value="301">GRECIA</option>
                                            <option value="315">GROENLANDIA</option>
                                            <option value="317">GUATEMALA</option>
                                            <option value="325">GUYANA</option>
                                            <option value="329">GUINEA</option>
                                            <option value="331">GUINEA ECUATORIAL</option>
                                            <option value="334">GUINEA BISSAU</option>
                                            <option value="338">GUADALUPE</option>
                                            <option value="339">GUAM</option>
                                            <option value="340">GUAYANA FRANCESA</option>
                                            <option value="341">HAITI</option>
                                            <option value="345">HONDURAS</option>
                                            <option value="347">HONG KONG</option>
                                            <option value="355">HUNGRIA</option>
                                            <option value="361">INDIA</option>
                                            <option value="365">INDONESIA</option>
                                            <option value="369">IRAQ</option>
                                            <option value="372">IRAN</option>
                                            <option value="375">IRLANDA DEL SUR</option>
                                            <option value="379">ISLANDIA</option>
                                            <option value="380">ISLA DE MAN</option>
                                            <option value="381">ISLA DE PITCAIRN</option>
                                            <option value="382">ISLA JOHNSTON</option>
                                            <option value="383">ISRAEL</option>
                                            <option value="384">ISLAS ALAND</option>
                                            <option value="385">ISLA WAKE</option>
                                            <option value="386">ITALIA</option>
                                            <option value="387">ISLAS CHRISTMAS</option>
                                            <option value="388">ISLAS COOK</option>
                                            <option value="389">ISLAS DEL CANAL</option>
                                            <option value="390">ISLAS FEROE</option>
                                            <option value="391">JAMAICA</option>
                                            <option value="392">ISLAS MARIANAS DEL NORTE</option>
                                            <option value="393">ISLAS MIDWAY</option>
                                            <option value="394">ISLAS WALLIS Y FUTUNA</option>
                                            <option value="395">ISLAS SALOMON</option>
                                            <option value="397">IRIAN JAYA</option>
                                            <option value="399">JAPON</option>
                                            <option value="403">JORDANIA</option>
                                            <option value="406">KAZAJSTAN</option>
                                            <option value="410">KENYA</option>
                                            <option value="411">KIRIBATI</option>
                                            <option value="412">KIRGUISTAN</option>
                                            <option value="413">KUWAIT</option>
                                            <option value="414">KOSOVO</option>
                                            <option value="415">kYRGYZSTAN</option>
                                            <option value="420">REP. DEMOC. POPULAR LAO</option>
                                            <option value="426">LESOTHO</option>
                                            <option value="428">LETONIA</option>
                                            <option value="429">LITUANIA</option>
                                            <option value="431">LIBANO</option>
                                            <option value="434">LIBERIA</option>
                                            <option value="438">LIBIA</option>
                                            <option value="441">LIECHTENSTEIN</option>
                                            <option value="442">LUXEMBURGO</option>
                                            <option value="447">MACAO</option>
                                            <option value="448">MACEDONIA</option>
                                            <option value="450">MADAGASCAR</option>
                                            <option value="455">MALASIA</option>
                                            <option value="458">MALAWI</option>
                                            <option value="461">MALDIVAS</option>
                                            <option value="464">MALI</option>
                                            <option value="467">MALTA</option>
                                            <option value="474">MARRUECOS</option>
                                            <option value="475">ISLAS MARSHALL</option>
                                            <option value="485">MAURICIO</option>
                                            <option value="488">MAURITANIA</option>
                                            <option value="490">MARTINICA</option>
                                            <option value="493">MEXICO</option>
                                            <option value="494">MAYOTTE</option>
                                            <option value="495">REPUBLICA DE MOLDOVA</option>
                                            <option value="496">MONACO</option>
                                            <option value="497">MONGOLIA</option>
                                            <option value="499">MONTENEGRO</option>
                                            <option value="501">MONTSERRAT</option>
                                            <option value="503">MICRONESIA</option>
                                            <option value="505">MOZAMBIQUE</option>
                                            <option value="507">MYANMAR</option>
                                            <option value="508">NAURU</option>
                                            <option value="512">NAMIBIA</option>
                                            <option value="517">NEPAL</option>
                                            <option value="521">NICARAGUA</option>
                                            <option value="525">NIGERIA</option>
                                            <option value="528">NIGER</option>
                                            <option value="531">NIUE</option>
                                            <option value="538">NORUEGA</option>
                                            <option value="539">NUEVA CALEDONIA</option>
                                            <option value="540">NUEVA ZELANDIA</option>
                                            <option value="542">OMAN</option>
                                            <option value="545">PAPUA NVA GUINEA</option>
                                            <option value="548">NUEVA ZELANDIA</option>
                                            <option value="556">OMAN</option>
                                            <option value="573">PAISES BAJOS</option>
                                            <option value="576">PAKISTAN</option>
                                            <option value="578">PALAU</option>
                                            <option value="580">PANAMA</option>
                                            <option value="582">PAPUA NUEVA GUINEA</option>
                                            <option value="586">PARAGUAY</option>
                                            <option value="589">PERU</option>
                                            <option value="600">PALESTINA</option>
                                            <option value="603">POLONIA</option>
                                            <option value="607">PORTUGAL</option>
                                            <option value="609">POLINESIA FRANCESA</option>
                                            <option value="611">PUERTO RICO</option>
                                            <option value="618">QATAR</option>
                                            <option value="628">REINO UNIDO</option>
                                            <option value="640">R. CENTROAFRICANA</option>
                                            <option value="643">REPUBLICA DE BELARRUS</option>
                                            <option value="645">REPUBLICA DE CHECHENIA</option>
                                            <option value="647">REPUBLICA DOMINICANA</option>
                                            <option value="649">REPUBLICA CHECA</option>
                                            <option value="650">REUNION</option>
                                            <option value="651">COREA DEL NORTE</option>
                                            <option value="670">RUMANIA</option>
                                            <option value="673">RUSIA</option>
                                            <option value="675">RWANDA</option>
                                            <option value="676">TRASJORDANIA</option>
                                            <option value="680">SAHARA OCCIDENTAL</option>
                                            <option value="682">SAINT-PIERRE Y MIQUELON</option>
                                            <option value="695">SAN CRISTOBAL Y NEVIS</option>
                                            <option value="698">SAMOA ESTADOUNIDENSE</option>
                                            <option value="699">SAMOA OCCIDENTAL</option>
                                            <option value="701">SAN MARINO</option>
                                            <option value="705">SAN VICENTE Y LAS GRANADINAS</option>
                                            <option value="708">SANTA HELENA</option>
                                            <option value="715">SANTA LUCIA</option>
                                            <option value="717">SANTA SEDE</option>
                                            <option value="720">SANTO TOME Y PRINCIPE</option>
                                            <option value="728">SENEGAL</option>
                                            <option value="729">SERBIA</option>
                                            <option value="730">SVALBARD</option>
                                            <option value="731">SEYCHELLES</option>
                                            <option value="735">SIERRA LEONA</option>
                                            <option value="741">SINGAPUR</option>
                                            <option value="744">REP. ARABE SIRIA</option>
                                            <option value="748">SOMALIA</option>
                                            <option value="750">SRI LANKA</option>
                                            <option value="756">SUDAFRICA</option>
                                            <option value="759">SUDAN</option>
                                            <option value="764">SUECIA</option>
                                            <option value="767">SUIZA</option>
                                            <option value="770">SURINAME</option>
                                            <option value="773">SWAZILANDIA</option>
                                            <option value="774">TAIWAN</option>
                                            <option value="775">TAYIKISTAN</option>
                                            <option value="776">TAILANDIA</option>
                                            <option value="777">TIBET</option>
                                            <option value="778">TERRIT. BRITANICO EN ANTARTIDA</option>
                                            <option value="779">TERRIT. BRIT. EN EL OCEANO INDICO</option>
                                            <option value="780">REP. UNIDA DE TANZANIA</option>
                                            <option value="781">TIERRAS AUSTALES Y ANTARTICAS</option>
                                            <option value="782">TAJIkISTAN</option>
                                            <option value="783">TIMOR ORIENTAL</option>
                                            <option value="800">TOGO</option>
                                            <option value="810">TONGA</option>
                                            <option value="812">TOQUELAU</option>
                                            <option value="815">TRINIDAD Y TOBAGO</option>
                                            <option value="820">TUNEZ</option>
                                            <option value="824">TURKMENISTAN</option>
                                            <option value="827">TURQUIA</option>
                                            <option value="828">TUVALU</option>
                                            <option value="829">TURKMENISTAN</option>
                                            <option value="830">UCRANIA</option>
                                            <option value="833">UGANDA</option>
                                            <option value="840">FEDERACION DE RUSIA</option>
                                            <option value="842">UNION MYANMAR</option>
                                            <option value="845">URUGUAY</option>
                                            <option value="847">UZBEKISTAN</option>
                                            <option value="849">VANUATU</option>
                                            <option value="850">VENEZUELA</option>
                                            <option value="855">VIET NAM</option>
                                            <option value="866">ISLAS VIRGENES BRITANICAS</option>
                                            <option value="867">ISLAS VIRGENES ESTADOUNIDENSES</option>
                                            <option value="880">YEMEN</option>
                                            <option value="885">YUGOSLAVIA</option>
                                            <option value="888">ZAIRE</option>
                                            <option value="890">ZAMBIA</option>
                                            <option value="892">ZIMBABWE</option>
                                            <option value="895">ANGUILA</option>
                                            <option value="900">ISLAS TURKS Y CAICOS</option>
                                            <option value="902">POINTE A PITRE</option>
                                            <option value="905">T</option>
                                            <option value="910">VILNA</option>
                                            <option value="915">YAMENA</option>
                                            <option value="920">YIBUTI</option>
                                            <option value="921">ANTILLAS HOLANDESAS</option>
                                            <option value="922">GRAN BRETAÑA</option>
                                            <option value="923">HOLANDA</option>
                                            <option value="924">PALESTINA</option>
                                            <option value="925">AFRICA</option>
                                            <option value="926">SLOVENIJE</option>
                                            <option value="927">LITHUANIA</option>
                                            <option value="928">ERITREA</option>
                                            <option value="929">ESCOCIA</option>
                                            <option value="930">GALES</option>
                                            <option value="931">INGLATERRA</option>
                                            <option value="932">IRLANDA DEL NORTE</option>
                                            <option value="933">LATVIJAS REPUBLICA</option>
                                            <option value="934">ROYAUME DU MAROC</option>
                                            <option value="998">CENTROAFRICA</option>
                                            <option value="999">DESCONOCIDO</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="row-fluid">
                                    <div class="span5"> 
                                        <label class="pull-right">Ciudad de destino:</label>
                                    </div>
                                    <div class="span7">
                                        <input id="ciudadDestino" name="ciudadDestino" class="input-medium requeridoHuesped" type="text" value="<?php if (!empty($esHuesped[0])) echo $esHuesped[0]->ciudad_destino; ?>" <?php if ($reserva[0]->checkout_realizado == 1) echo "disabled"; ?>>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div id="datosEmpresa" class="<?php if ($reserva[0]->id_tipo_cliente == 1) echo 'hide'; ?>">
                            <div class="row-fluid">
                                <div class="span5"> 
                                    <label class="pull-right">País</label>
                                </div>
                                <div class="span7">
                                    <select id="paisEmpresa" name="paisEmpresa" class="requeridoEmpresa preservar" data-seleccion="<?php echo $reserva[0]->id_pais; ?>">
                                        <option value="">Selecionar...</option>
                                        <option value="1">ALBORAN Y PEREJIL ISLAS</option>
                                        <option value="13">AFGANISTAN</option>
                                        <option value="17">ALBANIA</option>
                                        <option value="23">ALEMANIA</option>
                                        <option value="37">ANDORRA</option>
                                        <option value="40">ANGOLA</option>
                                        <option value="43">ANTIGUA Y BARBUDA</option>
                                        <option value="44">ANTILLAS NEERLANDESAS</option>
                                        <option value="53">ARABIA</option>
                                        <option value="55">ARABIA SAUDITA</option>
                                        <option value="59">ARGELIA</option>
                                        <option value="63">ARGENTINA</option>
                                        <option value="65">ARMENIA</option>
                                        <option value="67">ARUBA</option>
                                        <option value="69">AUSTRALIA</option>
                                        <option value="72">AUSTRIA</option>
                                        <option value="75">AZERBAIYAN</option>
                                        <option value="77">BAHAMAS</option>
                                        <option value="80">BAHREIN</option>
                                        <option value="81">BANGLADESH</option>
                                        <option value="83">BARBADOS</option>
                                        <option value="85">BELARUS</option>
                                        <option value="87">BELGICA</option>
                                        <option value="88">BELICE</option>
                                        <option value="89">BENIN</option>
                                        <option value="90">BERMUDAS</option>
                                        <option value="97">BOLIVIA</option>
                                        <option value="99">BOSNIA</option>
                                        <option value="101">BOTSWANA</option>
                                        <option value="105">BRASIL</option>
                                        <option value="108">BRUNEI DARUSSALAM</option>
                                        <option value="111">BULGARIA</option>
                                        <option value="113">BURKINA FASO</option>
                                        <option value="115">BURUNDI</option>
                                        <option value="117">BHUTAN</option>
                                        <option value="127">CABO VERDE</option>
                                        <option value="137">CAIMAN ISLAS</option>
                                        <option value="141">CAMBOYA</option>
                                        <option value="145">CAMERUN</option>
                                        <option value="149">CANADA</option>
                                        <option value="151">CHAD</option>
                                        <option value="155">CEUTA Y MELILLA</option>
                                        <option value="169">COLOMBIA</option>
                                        <option value="171">COMORAS</option>
                                        <option value="177">REP. DEMOC. DEL CONGO</option>
                                        <option value="190">COREA DEL SUR</option>
                                        <option value="193">COTE D`IVOIRE</option>
                                        <option value="196">COSTA RICA</option>
                                        <option value="198">CROACIA</option>
                                        <option value="199">CUBA</option>
                                        <option value="201">CURAZAO</option>
                                        <option value="207">REPUBLICA CHECA</option>
                                        <option value="211">CHILE</option>
                                        <option value="215">CHINA</option>
                                        <option value="218">TAIWAN</option>
                                        <option value="221">CHIPRE</option>
                                        <option value="232">DINAMARCA</option>
                                        <option value="233">DJIBOUTI</option>
                                        <option value="235">DOMINICA</option>
                                        <option value="239">ECUADOR</option>
                                        <option value="240">EGIPTO</option>
                                        <option value="242">EL SALVADOR</option>
                                        <option value="244">EMIRATOS ARABES</option>
                                        <option value="245">ESPAÑA</option>
                                        <option value="246">ERITREA</option>
                                        <option value="247">ESLOVAQUIA</option>
                                        <option value="248">ESLOVENIA</option>
                                        <option value="249">ESTADOS UNIDOS DE AMERICA</option>
                                        <option value="251">ESTONIA</option>
                                        <option value="253">ETIOPIA</option>
                                        <option value="255">FIJI</option>
                                        <option value="267">FILIPINAS</option>
                                        <option value="271">FINLANDIA</option>
                                        <option value="275">FRANCIA</option>
                                        <option value="281">GABON</option>
                                        <option value="285">GAMBIA</option>
                                        <option value="287">GEORGIA</option>
                                        <option value="289">GHANA</option>
                                        <option value="293">GIBRALTAR</option>
                                        <option value="297">GRANADA</option>
                                        <option value="301">GRECIA</option>
                                        <option value="315">GROENLANDIA</option>
                                        <option value="317">GUATEMALA</option>
                                        <option value="325">GUYANA</option>
                                        <option value="329">GUINEA</option>
                                        <option value="331">GUINEA ECUATORIAL</option>
                                        <option value="334">GUINEA BISSAU</option>
                                        <option value="338">GUADALUPE</option>
                                        <option value="339">GUAM</option>
                                        <option value="340">GUAYANA FRANCESA</option>
                                        <option value="341">HAITI</option>
                                        <option value="345">HONDURAS</option>
                                        <option value="347">HONG KONG</option>
                                        <option value="355">HUNGRIA</option>
                                        <option value="361">INDIA</option>
                                        <option value="365">INDONESIA</option>
                                        <option value="369">IRAQ</option>
                                        <option value="372">IRAN</option>
                                        <option value="375">IRLANDA DEL SUR</option>
                                        <option value="379">ISLANDIA</option>
                                        <option value="380">ISLA DE MAN</option>
                                        <option value="381">ISLA DE PITCAIRN</option>
                                        <option value="382">ISLA JOHNSTON</option>
                                        <option value="383">ISRAEL</option>
                                        <option value="384">ISLAS ALAND</option>
                                        <option value="385">ISLA WAKE</option>
                                        <option value="386">ITALIA</option>
                                        <option value="387">ISLAS CHRISTMAS</option>
                                        <option value="388">ISLAS COOK</option>
                                        <option value="389">ISLAS DEL CANAL</option>
                                        <option value="390">ISLAS FEROE</option>
                                        <option value="391">JAMAICA</option>
                                        <option value="392">ISLAS MARIANAS DEL NORTE</option>
                                        <option value="393">ISLAS MIDWAY</option>
                                        <option value="394">ISLAS WALLIS Y FUTUNA</option>
                                        <option value="395">ISLAS SALOMON</option>
                                        <option value="397">IRIAN JAYA</option>
                                        <option value="399">JAPON</option>
                                        <option value="403">JORDANIA</option>
                                        <option value="406">KAZAJSTAN</option>
                                        <option value="410">KENYA</option>
                                        <option value="411">KIRIBATI</option>
                                        <option value="412">KIRGUISTAN</option>
                                        <option value="413">KUWAIT</option>
                                        <option value="414">KOSOVO</option>
                                        <option value="415">kYRGYZSTAN</option>
                                        <option value="420">REP. DEMOC. POPULAR LAO</option>
                                        <option value="426">LESOTHO</option>
                                        <option value="428">LETONIA</option>
                                        <option value="429">LITUANIA</option>
                                        <option value="431">LIBANO</option>
                                        <option value="434">LIBERIA</option>
                                        <option value="438">LIBIA</option>
                                        <option value="441">LIECHTENSTEIN</option>
                                        <option value="442">LUXEMBURGO</option>
                                        <option value="447">MACAO</option>
                                        <option value="448">MACEDONIA</option>
                                        <option value="450">MADAGASCAR</option>
                                        <option value="455">MALASIA</option>
                                        <option value="458">MALAWI</option>
                                        <option value="461">MALDIVAS</option>
                                        <option value="464">MALI</option>
                                        <option value="467">MALTA</option>
                                        <option value="474">MARRUECOS</option>
                                        <option value="475">ISLAS MARSHALL</option>
                                        <option value="485">MAURICIO</option>
                                        <option value="488">MAURITANIA</option>
                                        <option value="490">MARTINICA</option>
                                        <option value="493">MEXICO</option>
                                        <option value="494">MAYOTTE</option>
                                        <option value="495">REPUBLICA DE MOLDOVA</option>
                                        <option value="496">MONACO</option>
                                        <option value="497">MONGOLIA</option>
                                        <option value="499">MONTENEGRO</option>
                                        <option value="501">MONTSERRAT</option>
                                        <option value="503">MICRONESIA</option>
                                        <option value="505">MOZAMBIQUE</option>
                                        <option value="507">MYANMAR</option>
                                        <option value="508">NAURU</option>
                                        <option value="512">NAMIBIA</option>
                                        <option value="517">NEPAL</option>
                                        <option value="521">NICARAGUA</option>
                                        <option value="525">NIGERIA</option>
                                        <option value="528">NIGER</option>
                                        <option value="531">NIUE</option>
                                        <option value="538">NORUEGA</option>
                                        <option value="539">NUEVA CALEDONIA</option>
                                        <option value="540">NUEVA ZELANDIA</option>
                                        <option value="542">OMAN</option>
                                        <option value="545">PAPUA NVA GUINEA</option>
                                        <option value="548">NUEVA ZELANDIA</option>
                                        <option value="556">OMAN</option>
                                        <option value="573">PAISES BAJOS</option>
                                        <option value="576">PAKISTAN</option>
                                        <option value="578">PALAU</option>
                                        <option value="580">PANAMA</option>
                                        <option value="582">PAPUA NUEVA GUINEA</option>
                                        <option value="586">PARAGUAY</option>
                                        <option value="589">PERU</option>
                                        <option value="600">PALESTINA</option>
                                        <option value="603">POLONIA</option>
                                        <option value="607">PORTUGAL</option>
                                        <option value="609">POLINESIA FRANCESA</option>
                                        <option value="611">PUERTO RICO</option>
                                        <option value="618">QATAR</option>
                                        <option value="628">REINO UNIDO</option>
                                        <option value="640">R. CENTROAFRICANA</option>
                                        <option value="643">REPUBLICA DE BELARRUS</option>
                                        <option value="645">REPUBLICA DE CHECHENIA</option>
                                        <option value="647">REPUBLICA DOMINICANA</option>
                                        <option value="649">REPUBLICA CHECA</option>
                                        <option value="650">REUNION</option>
                                        <option value="651">COREA DEL NORTE</option>
                                        <option value="670">RUMANIA</option>
                                        <option value="673">RUSIA</option>
                                        <option value="675">RWANDA</option>
                                        <option value="676">TRASJORDANIA</option>
                                        <option value="680">SAHARA OCCIDENTAL</option>
                                        <option value="682">SAINT-PIERRE Y MIQUELON</option>
                                        <option value="695">SAN CRISTOBAL Y NEVIS</option>
                                        <option value="698">SAMOA ESTADOUNIDENSE</option>
                                        <option value="699">SAMOA OCCIDENTAL</option>
                                        <option value="701">SAN MARINO</option>
                                        <option value="705">SAN VICENTE Y LAS GRANADINAS</option>
                                        <option value="708">SANTA HELENA</option>
                                        <option value="715">SANTA LUCIA</option>
                                        <option value="717">SANTA SEDE</option>
                                        <option value="720">SANTO TOME Y PRINCIPE</option>
                                        <option value="728">SENEGAL</option>
                                        <option value="729">SERBIA</option>
                                        <option value="730">SVALBARD</option>
                                        <option value="731">SEYCHELLES</option>
                                        <option value="735">SIERRA LEONA</option>
                                        <option value="741">SINGAPUR</option>
                                        <option value="744">REP. ARABE SIRIA</option>
                                        <option value="748">SOMALIA</option>
                                        <option value="750">SRI LANKA</option>
                                        <option value="756">SUDAFRICA</option>
                                        <option value="759">SUDAN</option>
                                        <option value="764">SUECIA</option>
                                        <option value="767">SUIZA</option>
                                        <option value="770">SURINAME</option>
                                        <option value="773">SWAZILANDIA</option>
                                        <option value="774">TAIWAN</option>
                                        <option value="775">TAYIKISTAN</option>
                                        <option value="776">TAILANDIA</option>
                                        <option value="777">TIBET</option>
                                        <option value="778">TERRIT. BRITANICO EN ANTARTIDA</option>
                                        <option value="779">TERRIT. BRIT. EN EL OCEANO INDICO</option>
                                        <option value="780">REP. UNIDA DE TANZANIA</option>
                                        <option value="781">TIERRAS AUSTALES Y ANTARTICAS</option>
                                        <option value="782">TAJIkISTAN</option>
                                        <option value="783">TIMOR ORIENTAL</option>
                                        <option value="800">TOGO</option>
                                        <option value="810">TONGA</option>
                                        <option value="812">TOQUELAU</option>
                                        <option value="815">TRINIDAD Y TOBAGO</option>
                                        <option value="820">TUNEZ</option>
                                        <option value="824">TURKMENISTAN</option>
                                        <option value="827">TURQUIA</option>
                                        <option value="828">TUVALU</option>
                                        <option value="829">TURKMENISTAN</option>
                                        <option value="830">UCRANIA</option>
                                        <option value="833">UGANDA</option>
                                        <option value="840">FEDERACION DE RUSIA</option>
                                        <option value="842">UNION MYANMAR</option>
                                        <option value="845">URUGUAY</option>
                                        <option value="847">UZBEKISTAN</option>
                                        <option value="849">VANUATU</option>
                                        <option value="850">VENEZUELA</option>
                                        <option value="855">VIET NAM</option>
                                        <option value="866">ISLAS VIRGENES BRITANICAS</option>
                                        <option value="867">ISLAS VIRGENES ESTADOUNIDENSES</option>
                                        <option value="880">YEMEN</option>
                                        <option value="885">YUGOSLAVIA</option>
                                        <option value="888">ZAIRE</option>
                                        <option value="890">ZAMBIA</option>
                                        <option value="892">ZIMBABWE</option>
                                        <option value="895">ANGUILA</option>
                                        <option value="900">ISLAS TURKS Y CAICOS</option>
                                        <option value="902">POINTE A PITRE</option>
                                        <option value="905">T</option>
                                        <option value="910">VILNA</option>
                                        <option value="915">YAMENA</option>
                                        <option value="920">YIBUTI</option>
                                        <option value="921">ANTILLAS HOLANDESAS</option>
                                        <option value="922">GRAN BRETAÑA</option>
                                        <option value="923">HOLANDA</option>
                                        <option value="924">PALESTINA</option>
                                        <option value="925">AFRICA</option>
                                        <option value="926">SLOVENIJE</option>
                                        <option value="927">LITHUANIA</option>
                                        <option value="928">ERITREA</option>
                                        <option value="929">ESCOCIA</option>
                                        <option value="930">GALES</option>
                                        <option value="931">INGLATERRA</option>
                                        <option value="932">IRLANDA DEL NORTE</option>
                                        <option value="933">LATVIJAS REPUBLICA</option>
                                        <option value="934">ROYAUME DU MAROC</option>
                                        <option value="998">CENTROAFRICA</option>
                                        <option value="999">DESCONOCIDO</option>
                                    </select>
                                </div>
                            </div>
                            <div class="row-fluid">
                                <div class="span5"> 
                                    <label class="pull-right">Identificación:</label>
                                </div>
                                <div class="span7">
                                    <input  id="identificacionEmpresa" name="identificacionEmpresa"  value="<?php if ($reserva[0]->id_tipo_cliente == 2) echo $reserva[0]->identificacion; ?>" class="requeridoEmpresa preservar" type="text">
                                </div>
                            </div>
                            <div class="row-fluid">
                                <div class="span5"> 
                                    <label class="pull-right">Nombre:</label>
                                </div>
                                <div class="span7">
                                    <input id="nombreEmpresa" name="nombreEmpresa"  value="<?php if ($reserva[0]->id_tipo_cliente == 2) echo $reserva[0]->nombre; ?>" class="requeridoEmpresa" type="text">
                                </div>
                            </div>
                            <div class="row-fluid">
                                <div class="span5"> 
                                    <label class="pull-right">Teléfono:</label>
                                </div>
                                <div class="span7">
                                    <input id="telefonoEmpresa" name="telefonoEmpresa"  value="<?php if ($reserva[0]->id_tipo_cliente == 2) echo $reserva[0]->telefono; ?>" class="requeridoEmpresa" type="text">
                                </div>
                            </div>
                            <div class="row-fluid">
                                <div class="span5"> 
                                    <label class="pull-right">Dirección:</label>
                                </div>
                                <div class="span7">
                                    <input id="direccionEmpresa" name="direccionEmpresa"  value="<?php if ($reserva[0]->id_tipo_cliente == 2) echo $reserva[0]->direccion; ?>" class="requeridoEmpresa" type="text">
                                </div>
                            </div>
                            <div class="row-fluid">
                                <div class="span5"> 
                                    <label class="pull-right">E-mail:</label>
                                </div>
                                <div class="span7">
                                    <input  id="emailEmpresa" name="emailEmpresa"  value="<?php if ($reserva[0]->id_tipo_cliente == 2) echo $reserva[0]->email; ?>"class="requeridoEmpresa" type="text">
                                </div>
                            </div>
                        </div>
                        <?php if ($reserva[0]->checkout_realizado != 1) {
                            ?>
                            <div class="row-fluid">
                                <hr>
                            </div>
                            <div class="row-fluid">

                                <div class="span12 alingCenter">
                                    <button id="botonFormCuadrante3" class="btn blockDisplay preservar" disabled>Actualizar</button>
                                    <br><br>
                                </div>
                            </div>
                        <?php } ?>
                    </div>
                </form>
            </div>
        </div>
        <div class="span6">
            <div class="row-fluid">
                <div class="span12 frame">
                    <div class="row-fluid title">
                        <div class="span12 alingCenter">Tarifa por día</div>
                    </div>
                    <div id="tarifa-x-dia" class="row-fluid content">

                        <?php
                        $tarifaTotal = 0;
                        foreach ($tarifa_x_dia as $row) {
                            ?>
                            <div class="row-fluid">
                                <div class="span5"> <label class="pull-right"><?php echo $row->dia; ?>:</label></div>
                                <div class="span7">     <div class="input-prepend">
                                        <span class="add-on"><?php echo $moneda ?></span>                                                                            
                                        <input type="text" class="input-medium" value="<?php echo $row->precio; ?>" readonly="readonly">  
                                    </div>
                                </div>

                            </div>
                            <?php
                            $tarifaTotal = $tarifaTotal + $row->precio;
                        }
                        ?>
                    </div>
                </div>
            </div>
            <div class="row-fluid">
                <div class="span12 frame">
                    <div class="row-fluid title">
                        <div class="span12 alingCenter">Cargos</div>
                    </div>
                    <div class="row-fluid content">
                        <div class="row-fluid">
                            <div class="span4"> <label class="pull-right">Alojamiento:</label></div>
                            <div class="span8"> 
                                <div class="span6"> 
                                    <div class="input-prepend">
                                        <span class="add-on"><?php echo $moneda ?></span>                                                                            
                                        <input id="alojamiento" name="alojamiento" type="text" value="<?php echo $totalAlojamiento[0]->total_alojamiento; ?>" class="input-small" readonly="readonly">  
                                    </div>
                                </div>
                                <div class="span6"> 
                                 
                                        <button id="ajustesAlojamiento" href="#modalAjustesAlojamiento" role="button" class="btn  <?php if ($reserva[0]->checkout_realizado != 1) echo "btn-inverse";?>" data-toggle="modal"  <?php if ($reserva[0]->checkout_realizado == 1) echo "disabled"; ?>>Ajustes</button>
                              
                                    <a id="verAjusteAlojamiento" href="#modalVerAjusteAlojamiento" role="button" class="btn btn-inverse" data-toggle="modal"><i class="icon-list icon-white"></i></a>
                                </div> 
                            </div>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div id='impuestos'>
                            <?php
                            $i = 1;
                            foreach ($impuestos as $row) {
                                ?>
                                <div class="row-fluid">
                                    <div class="span4">
                                        <label class="pull-right"><?php echo $row->nombre; ?></label>
                                    </div>
                                    <div class="span8">
                                        <input id="impuesto<?php echo $i; ?>" name="impuesto<?php echo $i++; ?>" class='impuestos' data-valor="<?php echo $row->valor; ?>" data-nombre="<?php echo $row->nombre; ?>" data-nombre="<?php echo $row->nombre; ?>" data-idImpuesto="<?php echo $row->id_impuesto; ?>" type="checkbox" <?php if ($reserva[0]->impuesto != 0) echo "checked='checked'"; ?> <?php if ($reserva[0]->checkout_realizado == 1) echo "disabled"; ?>>
                                    </div>
                                </div>
                            <?php } ?>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span4"> <label class="pull-right">Subtotal:</label></div>
                        <div class="span8"> 
                            <div class="input-prepend">
                                <span class="add-on"><?php echo $moneda ?></span>                                                                            
                                <input id="subtotal" name="subtotal" type="text" value="<?php
                                echo $reserva[0]->impuesto + $totalAlojamiento[0]->total_alojamiento;
                                ;
                                ?>"class="input-small" readonly="readonly">  
                            </div>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span12">
                            <hr>
                        </div>
                    </div>

                    <div class="row-fluid">
                        <div class="span4">
                            <label class="pull-right">Consumos extra</label>
                        </div>
                        <div class="span8"> 
                            <div class="span4"> 
                                <div class="input-prepend">
                                    <span class="add-on"><?php echo $moneda ?></span>                                                                            
                                    <input value="<?php echo $consumoTotal; ?>" type="text" class="input-medium" readonly="readonly">  
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="row-fluid">
                        <div class="span4">
                            <label class="pull-right">Impuesto consumo:</label>
                        </div>
                        <div class="span8"> 
                            <div class="span4"> 
                                <div class="input-prepend">
                                    <span class="add-on"><?php echo $moneda ?></span>                                                                            
                                    <input  value="<?php echo $impuestosConsumo; ?>"  type="text" class="input-medium" readonly="readonly">  
                                </div>
                            </div>
                        </div>
                    </div>

                    <?php if ($seguroHotelero[0]->tiene_seguro_hotelero == 1) { ?>
                        <div class="row-fluid">
                            <div class="span12">
                                <hr>
                            </div>
                        </div>
                        <div class="row-fluid">
                            <div class="span4">
                                <label class="pull-right">Seguro hotelero:</label>
                            </div>
                            <div class="span8"> 
                                <div class="span4"> 
                                    <div class="input-prepend">
                                        <span class="add-on"><?php echo $moneda ?></span>                                                                            
                                        <input  value="<?php echo $seguroHotelero[0]->seguro_hotelero; ?>"  type="text" class="input-medium" readonly="readonly">  
                                    </div>
                                </div>
                            </div>
                        </div>
                        <?php
                    } else {
                        $seguroHotelero[0]->seguro_hotelero = 0;
                    }
                    ?>
                    <div class="row-fluid">
                        <div class="span12">
                            <hr>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span4">
                            <label class="pull-right">Total a pagar:</label>
                        </div>
                        <div class="span8"> 
                            <div class="input-prepend">
                                <span class="add-on"><?php echo $moneda ?></span>                                                                            
                                <input id="totalPagar" value="<?php echo $sumaTotalPagar = $reserva[0]->impuesto + $tarifaTotal + $consumoTotal + $impuestosConsumo + $seguroHotelero[0]->seguro_hotelero + $ajustes[0]->totalAjuste; ?>"  type="text" class="input-medium" readonly="readonly">  
                            </div>

                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span4">
                            <label class="pull-right">Total por impuestos:</label>
                        </div>
                        <div class="span8"> 
                            <div class="span4"> 
                                <div class="input-prepend">
                                    <span class="add-on"><?php echo $moneda ?></span>                                                                            
                                    <input  value="<?php echo $reserva[0]->impuesto + $impuestosConsumo; ?>"  type="text" class="input-medium" readonly="readonly">  
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span12">
                            <hr>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span4">
                            <label class="pull-right">Pagado:</label>
                        </div>
                        <div class="span7"> 
                            <div class="span8"> 
                                <div class="input-prepend">
                                    <span class="add-on"><?php echo $moneda ?></span>                                                                            
                                    <input  value="<?php echo $ingresos[0]->totalIngreso; ?>"  type="text" class="input-medium" readonly="readonly">  
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span4">
                            <label class="pull-right">Pendiente:</label>
                        </div>
                        <div class="span8"> 
                            <div class="span6"> 
                                <div class="input-prepend">
                                    <span class="add-on"><?php echo $moneda ?></span>                                                                            
                                    <input id="pendiente" value="<?php echo $sumaTotalPagar - $ingresos[0]->totalIngreso; ?>"  type="text" class="input-small" readonly="readonly">  
                                </div>
                            </div>
                            <div class="span6"> 
                             
                                    <button id="ajustesTotal" href="#modalAjustesTotal" role="button" class="btn    <?php if ($reserva[0]->checkout_realizado != 1) echo "btn-inverse"; ?>" data-toggle="modal" <?php if ($reserva[0]->checkout_realizado == 1) echo "disabled"; ?>>Ajustes</button>
                                
                                <a id="VerAT" href="#modalVerAT" role="button" class="btn btn-inverse" data-toggle="modal"><i class="icon-list icon-white"></i></a>
                            </div> 
                        </div>
                    </div>

                    <div class="row-fluid">
                        <div class="span12">
                            <hr>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span12 alingCenter">
              
                                <button id="registrarPago" href="#modalRegistrarPago" role="button" class="btn <?php if ($reserva[0]->checkout_realizado != 1) echo "btn-success"; ?> alingCenter " data-toggle="modal"  <?php if ($reserva[0]->checkout_realizado == 1) echo "disabled"; ?>>Registrar Pago</button>
                    
                            <a id="verPagos" href="#modalVerPagos" role="button" class="btn btn-success" data-toggle="modal"><i class="icon-list icon-white"></i></a>
                        </div>
                        <br>
                        <br>
                    </div>

                </div>
            </div>
        </div>
    </div>

    <form id="actualizarImpuestos" action="facturacion/actualizarImpuestoAlojamiento" method="post" class="formBlockDisplay hide"  autocomplete="off">
        <input name="idReserva" value="<?php echo $_GET["reserva"]; ?>" type="text" class="hide">
        <input id="valorImpuesto" name="valorImpuesto" type="text" class="hide">
    </form>

    <!-- Modal Ajustes Alojamiento-->
    <div id="modalAjustesAlojamiento" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <form id="formAjustesAlojamiento" action="ajuste/crearAjusteAlojamiento" method="post" class="formBlockDisplay"  autocomplete="off">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h3 id="myModalLabel">Realizar ajuste por alojamiento</h3>
            </div>
            <div class="modal-body">
                <input type="text" value="<?php echo $_GET["reserva"]; ?>" name="idReserva" class="hide">
                <div class="row-fluid">
                    <div class="span4">
                        <label class="pull-right">Valor:</label>
                    </div>
                    <div class="span8">
                        <div class="input-prepend">
                            <span class="add-on"><?php echo $moneda ?></span>                                                                            
                            <input  id="valorDescuentoAlojamiento" name="valorAjusteAlojamiento" value="<?php ?>"  type="text" class="input-medium soloNumerosSignoMenos requerido">  
                        </div>
                        <div class="help-block">Si es un decremento por favor usar el sigo -</div>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span4">
                        <label class='pull-right'>Descripción:</label>
                    </div>
                    <div class="span8">
                        <textarea rows="2" class="input-large requerido" name="descripcionAjusteAlojamiento" id="descripcionDescuentoAlojamiento"></textarea>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <a class="btn" data-dismiss="modal">Cerrar</a>
                <a id="botonCrearAjusteAlojamiento" class="btn btn-inverse">Crear</a>
            </div>
        </form>
    </div>


    <!-- Modal Ajustes Total-->
    <div id="modalAjustesTotal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <form id="formAjustesTotal" action="ajuste/crearAjusteTotal" method="post" class="formBlockDisplay"  autocomplete="off">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h3 id="myModalLabel">Realizar ajuste por alojamiento</h3>
            </div>
            <div class="modal-body">
                <input type="text" value="<?php echo $_GET["reserva"]; ?>" name="idReserva" class="hide">
                <div class="row-fluid">
                    <div class="span4">
                        <label class="pull-right">Valor:</label>
                    </div>
                    <div class="span8">
                        <div class="input-prepend">
                            <span class="add-on"><?php echo $moneda ?></span>                                                                            
                            <input  id="valorAjusteTotal" name="valorAjusteTotal" value="<?php ?>"  type="text" class="input-medium soloNumerosSignoMenos requerido">  
                        </div>
                        <div class="help-block">Si es un decremento por favor usar el sigo -</div>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span4">
                        <label class='pull-right'>Descripción:</label>
                    </div>
                    <div class="span8">
                        <textarea rows="2" class="input-large requerido" name="descripcionAjusteTotal" id="descripcionAjusteTotal"></textarea>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <a class="btn" data-dismiss="modal">Cerrar</a>
                <a id="botonCrearAjusteTotal" class="btn btn-inverse">Crear</a>
            </div>
        </form>
    </div>

    <!-- Modal Registrar Pago -->
    <div id="modalRegistrarPago" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <form id="formRegistrarPago" action="facturacion/registrarPago" method="post" class="formBlockDisplay" autocomplete="off">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h3 id="myModalLabel">Realizar pago</h3>
            </div>
            <div class="modal-body">
                <input type="text" value="<?php echo $_GET["reserva"]; ?>" name="idReserva" class="hide">
                <div class="row-fluid">
                    <div class="span4">
                        <label class="pull-right">Valor:</label>
                    </div>
                    <div class="span8">
                        <div class="input-prepend">
                            <span class="add-on"><?php echo $moneda ?></span>                                                                            
                            <input  id="valorPago" name="valorPago" value="<?php ?>"  type="text" class="input-medium soloNumeros requerido">  
                        </div>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span4">
                        <label class='pull-right'>Descripción:</label>
                    </div>
                    <div class="span8">
                        <textarea rows="2" class="input-large" name="descripcionPago" id="descripcionPago"></textarea>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span4">
                        <label class="pull-right">Modo de pago:</label>
                    </div>
                    <div class="span8">
                        <select id="modoPago" name="modoPago" class="requerido">
                            <option value="">Seleccionar...</option>
                            <option value="efectivo">Efectivo</option>
                            <option value="deposito_bancario">Depósito bancario</option>
                            <option value="otro">Otro</option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <a  class="btn" data-dismiss="modal">Cancelar</a>
                <a id="botonRegistrarPago" class="btn btn-inverse">Registrar pago</a>

            </div>
        </form>
    </div>

    <!-- Modal Ver Ajuestes Alojamiento-->
    <div id="modalVerAjusteAlojamiento" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <form id="formVerAjusteAlojamiento" action="" method="post" class="formBlockDisplay" autocomplete="off">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h3 id="myModalLabel">Ajustes realizados al hospedaje</h3>
            </div>
            <div class="modal-body">
                <table id='tablaListarConsumos' class="table table-striped table-hover">
                    <thead>
                        <tr>
                            <th>Fecha</th>
                            <th>Creado por</th>
                            <th>Descripcion</th>
                            <th>Valor</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php
                        $totalAjusteAlojamiento = 0;
                        foreach ($ajusteAlojamiento as $row) {
                            ?>
                            <tr>
                                <td><?php echo $row->fecha; ?></td>
                                <td><?php echo $row->usuario_creacion; ?></td>
                                <td><?php echo $row->descripcion; ?></td>
                                <td><?php echo $moneda . $row->valor; ?></td>
                                <?php
                                $totalAjusteAlojamiento = $totalAjusteAlojamiento + $row->valor;
                            }
                            ?>
                        </tr>
                        <tr>
                            <td></td> 
                            <td></td>
                            <td><a>Total:</a></td>                           
                            <td><b class="colorRed"><?php echo $moneda . $totalAjusteAlojamiento; ?></b></td>

                        </tr>
                    </tbody>
                </table>

            </div>
            <div class="modal-footer">
                <button class="btn" data-dismiss="modal" aria-hidden="true">Cerrar</button>
            </div>
        </form>
    </div>


    <!-- Modal Ver Ajuestes Total -->
    <div id="modalVerAT" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <form id="formVerAT" action="" method="post" class="formBlockDisplay" autocomplete="off">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h3 id="myModalLabel">Ajustes realizados al valor pendiente</h3>
            </div>
            <div class="modal-body">
                <table id='tablaListarConsumos' class="table table-striped table-hover">
                    <thead>
                        <tr>
                            <th>Fecha</th>
                            <th>Creado por</th>
                            <th>Descripcion</th>
                            <th>Valor</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php
                        $totalAjustePagado = 0;
                        foreach ($ajusteTotal as $row) {
                            ?>
                            <tr>
                                <td><?php echo $row->fecha; ?></td>
                                <td><?php echo $row->usuario_creacion; ?></td>
                                <td><?php echo $row->descripcion; ?></td>
                                <td><?php echo $moneda . $row->valor; ?></td>
                                <?php
                                $totalAjustePagado = $totalAjustePagado + $row->valor;
                            }
                            ?>
                        </tr>
                        <tr>
                            <td></td> 
                            <td></td> 
                            <td><a>Total:</a></td>                           
                            <td><b class="colorRed"><?php echo $moneda . $totalAjustePagado; ?></b></td>
                        </tr>
                    </tbody>
                </table>

            </div>
            <div class="modal-footer">
                <button class="btn" data-dismiss="modal" aria-hidden="true">Cerrar</button>
            </div>
        </form>
    </div>


    <!-- Modal Ver Pagos-->
    <div id="modalVerPagos" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <form id="formVerPagos" action="" method="post" class="formBlockDisplay" autocomplete="off">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h3 id="myModalLabel">Pagos realizados</h3>
            </div>
            <div class="modal-body">
                <table id='tablaListarConsumos' class="table table-striped table-hover">
                    <thead>
                        <tr>
                            <th>Fecha</th>
                            <th>Creado por</th>
                            <th>Descripcion</th>
                            <th>Modo de pago</th>
                            <th>Valor</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php
                        $totalPagosRealizados = 0;
                        foreach ($pagosRealizados as $row) {
                            ?>
                            <tr>
                                <td><?php echo $row->fecha; ?></td>
                                <td><?php echo $row->usuario_creacion; ?></td>
                                <td><?php echo $row->descripcion; ?></td>
                                <td><?php if ($row->modo_pago == "deposito_bancario") echo "Depósito bancario"; else if ($row->modo_pago == "efectivo") echo "Efectivo"; else if ($row->modo_pago == "otro") echo "Otro"; ?></td>
                                <td><?php echo $moneda . $row->valor; ?></td>
                                <?php
                                $totalPagosRealizados = $totalPagosRealizados + $row->valor;
                            }
                            ?>
                        </tr>
                        <tr>
                            <td></td> 
                            <td></td>
                            <td></td>
                            <td><a>Total:</a></td>                           
                            <td><b class="colorRed"><?php echo $moneda . $totalPagosRealizados; ?></b></td>
                        </tr>
                    </tbody>
                </table>

            </div>
            <div class="modal-footer">
                <button class="btn" data-dismiss="modal" aria-hidden="true">Cerrar</button>
            </div>
        </form>
    </div>

</div>



